package com.zcxy.fast.config;


import cn.hutool.core.collection.CollectionUtil;

import com.zcxy.fast.mybatisExtend.mapper.AutoMapper;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zcc
 * @version 1.0.0
 * @ClassName AutoMapperConfig.java
 * @Description TODO
 * @createTime 2020年05月27日 21:10:00
 */

@Data
@Configuration
@ConfigurationProperties(prefix = "fast")
public class AutoMapperConfig {

    private String[] autoPackage;

    @Bean
    public AutoMapper autoMapper() {
        AutoMapper mapper=new AutoMapper(autoPackage);
        return mapper ;
    }

}